<?php
//父类
class Person {
    public function show() {
        echo '这是人类<br>';
    }
}
//子类继承父类
class Student extends Person {
}
//测试
$stu=new Student;
$stu->show();			//这是人类
